<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../houtai/include/peizhi.jsp"%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<link rel="shortcut icon" type="image/x-icon" href="${ctx}/images/favicon.ico" />
	<meta name="title" content="${titleVo.title}">
	<meta name="keywords" content="${titleVo.keyword}">
	<meta name="description" content="${titleVo.content}">
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<link rel="stylesheet" type="text/css" href="${ctx}/css/basepc.css">
	<link rel="stylesheet" type="text/css" href="${ctx}/css/index.css">
	<link rel="stylesheet" href="${ctx}/css/admin.css" /> 
	<script type="text/javascript" src="${ctx}/js/jquery-1.9.1.min.js"></script>
	<title></title>
<style type="text/css">
	.choice {
    width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #f0f0f0;
}
</style>
</head>
<body>
<form id="pageForm" action="${ctx}/list/getList">
	<div class="home-top" style="_height:10rem;min-height:10rem;background-image: none;height: 0px;">
		<jsp:include page="/WEB-INF/views/qiantai/include/head.jsp" />
	</div>
	<div class="w1200">
		<div class="home-tap">
			<div>账号：</div><div><input id="email" type="text" style="border: 1px solid;"  ></div>
			<div>密码：</div><div><input id="password" type="password" style="border: 1px solid;"></div>
			<input type="button"  id="login" style="border: 1px solid;" value="登录">
		</div>
	</div>
<jsp:include page="/WEB-INF/views/qiantai/include/foot.jsp"/>
</form>
<input type="hidden" id="typediqu" value="${typediqu}">
<script type="text/javascript">
	//隐藏掉没用的div
	$(".home-hot-box").hide();
	$("#Register_login").hide();
	$("#head_daohang").hide();
	$("#login").click(function(){
		var parm = {
				email:$("#email").val(),
				password:$("#password").val(),
				url:'${url}'
				};
		$.ajax({
			url:"/qt/login/login",
			type:"post",
			data:parm,
			success:function(data){
				if(data.stats=='1'){
					alert("用户不存在");
				}
				if(data.stats=='2'){
					alert("密码错误");
				}
				if(data.stats=='3'){
					alert("账号无效请重新注册");
				}
				if(data.stats=='0'){
					window.location.href=data.url; 
				}
			}
		}); 
	});
	
	
	
	
</script>
</body>
</html>